<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
<f:view locale="#{language.locale}"/>
<h:head>
    <title>Twitter :: <h:outputText value="#{msg.login}" /></title>
    <h:outputStylesheet library="css" name="site.css"/>
</h:head>
<h:body>
    <div id="header">
	<div id="center">
            <div id="language">
                <h:form id="languageForm">
                    
                    <h:commandLink action="#{language.changeLang()}" value="#{msg.change_lang}"  class="changeLangMsg"/>
                </h:form>
            </div>
	</div>
    </div>
    <div id="content">
        <div id="left">
            <h:form id="loginForm">
                <p:panel id="loginPanel">
                <h:panelGrid id="loginGrid" columns="3">    
                    <h:outputLabel for="user" value="#{msg.user}:"/>
                    <p:inputText id="user" value="#{userLogin.user}" required="true" requiredMessage="#{msg.required_field_msg}"/>
                    <p:message id="userMsg" for="user"/>
                    <h:outputLabel for="pass" value="#{msg.pass}:"/>
                    <p:password id="pass" value="#{userLogin.pass}" required="true" requiredMessage="#{msg.required_field_msg}"/>
                    <p:message id="passMsg" for="pass"/>
                </h:panelGrid>
                <p:commandButton  ajax="false" value="#{msg.login}" action="#{userLogin.doUserLogin()}"/>
                </p:panel>
            </h:form>
        </div>
        <div id="right">
            
        </div>
    </div>
</h:body>
</html>